package com.starchen.optimalselection.web.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.starchen.optimalselection.web.model.OrderInfo;
import com.starchen.optimalselection.web.model.vo.OrderConfirmVo;
import com.starchen.optimalselection.web.model.vo.OrderSubmitVo;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author daxilong
 */
public interface OrderInfoService extends IService<OrderInfo> {

    //确认订单
    OrderConfirmVo confirmOrder(Long userId);

    //生成订单
    Long submitOrder(OrderSubmitVo orderParamVo,Long userId);

//    //订单详情
//    OrderInfo getOrderInfoById(Long orderId);
//
//    //根据orderNo查询订单信息
//    OrderInfo getOrderInfoByOrderNo(String orderNo);
//
//    //订单支付成功，更新订单状态，扣减库存
//    void orderPay(String orderNo);
//
//    //订单查询
//    IPage<OrderInfo> getOrderInfoByUserIdPage(Page<OrderInfo> pageParam, OrderUserQueryVo orderUserQueryVo);
}
